package org.lgiavedoni.android.franq.service.phone.location;

import org.lgiavedoni.android.franq.service.communication.CommunicationService;
import org.lgiavedoni.android.franq.service.log.Logger;

import android.location.Location;
import android.os.Bundle;

public class LocationListener implements android.location.LocationListener {

	public void onLocationChanged(Location loc) {
		String text = "My current location is: " + "Latitud = " + loc.getLatitude() + "Longitud = " + loc.getLongitude();

		// CommunicationService.inst.sendDefaultTextMessage(text);
		Logger.inst.info(text);
	}

	public void onProviderDisabled(String provider) {
		CommunicationService.inst.sendDefaultTextMessage("Gps Disabled");
	}

	public void onProviderEnabled(String provider) {
		CommunicationService.inst.sendDefaultTextMessage("Gps Enabled");
	}

	public void onStatusChanged(String provider, int status, Bundle extras) {

	}

}
